package jwr;

import java.awt.BorderLayout;
import java.awt.Color;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class P488Ex extends JFrame{
	public P488Ex() {
		setVisible(true);
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		setSize(400, 300);
		
		JPanel jp1 = new JPanel();
		JPanel jp2 = new JPanel();
		
		jp1.add(new JButton("Open"));
		jp1.add(new JButton("Read"));
		jp1.add(new JButton("Close"));
		
		jp1.setBackground(Color.gray);
		add(jp1,BorderLayout.NORTH);
		
		jp2.setLayout(null);
		JLabel jl1 = new JLabel("Hello");
		JLabel jl2 = new JLabel("Love");
		JLabel jl3 = new JLabel("Java");
		jl1.setLocation(60, 20);
		jl1.setSize(50, 20);
		jl2.setLocation(250, 100);
		jl2.setSize(50, 20);
		jl3.setLocation(100, 150);
		jl3.setSize(50, 20);
		jp2.add(jl1);
		jp2.add(jl2);
		jp2.add(jl3);
		add(jp2,BorderLayout.CENTER);
		
	}

}
